<div class="nodes form">
<?php echo $form->create('Node');?>
	<fieldset>
 		<legend><?php __('Edit Node');?></legend>
<?php 
		echo $form->input('Node.parent_id', array('type' => 'select', 'value' => $this->data['Node']['parent_id'], 'options' => $nodes, 'empty' => '', 'label' => __( 'Under node', true)));
		echo $form->input('id');
		echo $form->input('Node.template', array('type' => 'select', 'value' => $this->data['Node']['template'], 'options' => $templates, 'empty' => '', 'label' => __( 'Pick template', true)));
		echo $form->input('title');
		echo $form->input('content');
		echo $form->input('shortcut');
		//echo $form->input('slug');
		//echo $form->input('parent_id');
		//echo $form->input('lft');
		//echo $form->input('rght');
		echo $form->input('published');
		//echo $form->input('deleted');
	?>
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Delete', true), array('action'=>'delete', $form->value('Node.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Node.id'))); ?></li>
		<li><?php echo $html->link(__('List Nodes', true), array('action'=>'index'));?></li>
	</ul>
</div>
